package spring.main;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import spring.bean.NewsFeedManager;

public class Main {

	public static void main(String[] args) throws Exception {

		ApplicationContext ctx = new ClassPathXmlApplicationContext("conf/bean.xml");
		NewsFeedManager manager = (NewsFeedManager) ctx.getBean("newsFeedManager");
		manager.printNews();
		manager.printNews();
	}
}
